package cn.edu.scau.cmi.zengdefeng.simpleFactoryMethod;

import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;

public class Controller  {
	@FXML
	private TextArea text;
	@FXML
	private Button pork;
	@FXML
	private Button chicken;
	@FXML
	private Button beef;
	
	@FXML
	public void setPork() {
		Meat meat =MeatFactory.getMeat("pork");
		text.appendText(meat.build());
	}
	@FXML
	public void setChicken() {
		Meat meat =MeatFactory.getMeat("chicken");
		text.appendText(meat.build());
	}
	@FXML
	public void setBeef() {
		Meat meat =MeatFactory.getMeat("beef");
		text.appendText(meat.build());
	}
	
}
